/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity;

import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.templet.entity.EleTemplet;
import org.hibernate.validator.constraints.Length;

import javax.xml.bind.annotation.XmlTransient;
import java.util.List;

/**
 * 节目包管理Entity
 * @author ZC
 * @version 2017-05-25
 */
public class EleSourceGroup extends DataEntity<EleSourceGroup> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private EleTemplet templet;		// 名称
	private String type;		// 名称
	private List<EleSource> eleSourceList = Lists.newArrayList();		// 子表列表
	private String startDate = null;
	private String endDate = null;
	private String url = null;
	private String visible;
	public EleSourceGroup() {
		super();
	}

	public EleSourceGroup(String id){
		super(id);
	}

	@Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<EleSource> getEleSourceList() {
		return eleSourceList;
	}

	public void setEleSourceList(List<EleSource> eleSourceList) {
		this.eleSourceList = eleSourceList;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getType(){
		return type;
	}

	public void setType(String type){
		this.type = type;
	}

	public EleTemplet getTemplet(){
		return templet;
	}

	public void setTemplet(EleTemplet templet){
		this.templet = templet;
	}

	@XmlTransient
	public String getUrl(){
		return url;
	}

	public void setUrl(String url){
		this.url = url;
	}
	@XmlTransient
	public String getVisible() {
		return visible;
	}

	public void setVisible(String visible) {
		this.visible = visible;
	}
	
}